package com.hbzhit.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbzhit.common.utils.MybatisCache;
import com.hbzhit.modules.sys.entity.SysOrgEntity;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 组织机构
 *
 * @author DING
 * @date 2019-07-11 11:09:26
 */
@Mapper
@Repository
@CacheNamespace(implementation = MybatisCache.class, eviction = MybatisCache.class)
public interface SysOrgDao extends BaseMapper<SysOrgEntity> {
    /**
     * 根据据存放的微信部门id查询部门负责人userId
     *
     * @param orgId
     * @return
     */
    Long selectUserIdByOrgId(@Param("orgId") Long orgId);
}
